(comint-exec-1): Set columns of the terminal to
authorGerd Moellmann <gerd@gnu.org>
Tue, 20 Mar 2001 15:10:50 +0000 (15:10 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 20 Mar 2001 15:10:50 +0000 (15:10 +0000)
window-width instead of frame-width.

lisp/comint.el

index b2b95dfe3388b109595bb4727b66ac8ff6095788..aadf85f7261acbe93441d501821200b03e0883d5 100644 (file)
@@ -740,9 +740,9 @@ buffer.  The hook `comint-exec-hook' is run after each exec."
          ;; if TERM is not a valid terminal type.
          (if (and (boundp 'system-uses-terminfo) system-uses-terminfo)
              (list "TERM=dumb" "TERMCAP="
-                   (format "COLUMNS=%d" (frame-width)))
+                   (format "COLUMNS=%d" (window-width)))
            (list "TERM=emacs"
-                 (format "TERMCAP=emacs:co#%d:tc=unknown:" (frame-width))))
+                 (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width))))
          (if (getenv "EMACS") nil (list "EMACS=t"))
          process-environment))
        (default-directory